// components/Tabs/Tabs.js
Component({
  properties: {
    tabs: {
      value: [],
      type: Array
    }
  },
  data: {
  },
  methods: {
    // 点击tab, 激活相应项style
    activeTab(e) {
      const { tabindex } = e.currentTarget.dataset
      this.triggerEvent('handleTabs', tabindex)
    }
  }
})
